const mockSwitch = false;

/**
 * T：黑子
 * F：白子
 */
let selfTurn = true;

let winning = false;


window.onload = function () {

    // 初始化绘制棋盘
    drawChessboard(boardSize, gridSize);
    ChessBoardData_init(boardSize, boardSize);

    if (mockSwitch) {

        let mockChess = [];
        for (let i = 0; i < boardSize; i++) {
            mockChess.push(new Array(boardSize));
            for (let j = 0; j < boardSize; j++) {
                mockChess[i][j] = Math.floor(Math.random() * 3);
            }
        }
        fillChess(mockChess);
        ChessBoardData_fillData(mockChess);

    }
}



